package com.justnow.offer;

/**
 * @author justnow
 * Created on 2020-09-09
 * Description
 */
public class DemoThreadLocal01 {

    private static ThreadLocal<String> username = new ThreadLocal<>();

    public static void main(String[] args) {
        String name = "justnow";
        username.set(name);
        String s = username.get();
        System.out.println(s);
    }


}
